﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Xml.Serialization;

namespace Sovigaz.DataProvider
{
    public partial class SovigazDbContext
    {
        public DbSet<DeliveryPlanLine> DeliveryPlanLines { get; set; }
    }

    [Table("DeliveryPlanLines")]
    public class DeliveryPlanLine : AuditableEntity
    {
        [Key]
        public int DeliveryPlanLineID { get; set; }

        public int DeliveryPlanID { get; set; }

        public int OrderLineID { get; set; }

        public int PlanQty { get; set; }

        public int ShippedQty { get; set; }

        public string Description { get; set; }
    }

    public class DeliveryPlanLineComplex
    {
        public int DeliveryPlanLineID { get; set; }

        public int DeliveryPlanID { get; set; }

        public int PartnerID { get; set; }

        public string PartnerName { get; set; }

        public int OrderID { get; set; }

        public int OrderLineID { get; set; }

        public int CategoryID { get; set; }

        public string CategoryName { get; set; }

        public string Size { get; set; }

        public decimal Capacity { get; set; }

        public int PlanQty { get; set; }

        public int ShippedQty { get; set; }

        public string Description { get; set; }
    }
}